using System.Web.Mvc;

namespace MvcApplication7.Models
{
    public class Folder1Pv1ViewModel
    {
        public readonly Folder1Pv1RenderModel RenderModel;

        public Folder1Pv1ViewModel(Folder1Pv1RenderModel renderModel)
        {
            RenderModel = renderModel;
        }
    }

    public class Folder1Pv1RenderModel
    {
        public readonly JsRenderer<HtmlHelper> JsRenderer = new JsRenderer<HtmlHelper>(
            html => html.RenderPartial(ViewInfos.Folder1Pv1JsViewInfo, new Empty()));

        public readonly IScriptedViewInfo<Folder1Pv3ViewModel, Folder1Pv3RenderModel> Folder1Pv3ScriptedViewInfo;

        public Folder1Pv1RenderModel()
        {
            Folder1Pv3ScriptedViewInfo = JsRenderer.Add(
                ViewInfos.Folder1Pv3RenderViewInfo,
                (renderModel, html) => renderModel.JsRenderer.RenderJs(html));
        }
    }
}